package com.youlai.boot.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.youlai.boot.system.model.entity.LpsOrderCdjg;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.boot.system.model.excel.LpsOrderCdjgExcel;
import com.youlai.boot.system.model.query.LpsOrderCdjgQuery;
import com.youlai.boot.system.model.vo.LpsOrderCdjgVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 触动机构Mapper接口
 *
 * @author lwb
 * @since 2025-07-13 16:03
 */
@Mapper
public interface LpsOrderCdjgMapper extends BaseMapper<LpsOrderCdjg> {

    /**
     * 获取触动机构分页数据
     *
     * @param page        分页对象
     * @param queryParams 查询参数
     * @return
     */
    Page<LpsOrderCdjgVO> getLpsOrderCdjgPage(Page<LpsOrderCdjgVO> page, LpsOrderCdjgQuery queryParams);

    /**
     * @param orderIds
     */
    void deleteByOrderIds(@Param("orderIds") List<Long> orderIds);

    /**
     * @param orderId
     * @return
     */
    List<LpsOrderCdjgExcel> getExcelList(Long orderId);

    /**
     * @param cdjgList
     */
    void batchInsert(@Param("list") List<LpsOrderCdjg> cdjgList);
}
